Skip to content

docs(skills): objectstack-platform names the arrangements list of the package customizations read - #37568

Queued
objectstack-fleet[bot] wants to merge 3 commits into
mainfrom
claude/issue-36828-skill-customizations-arrangements
Queued

objectstack-fleet[bot] wants to merge 3 commits into
mainfrom
claude/issue-36828-skill-customizations-arrangements

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #36828

Clause-②: no (published prose only; names a list the read already returns on main)
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:AI 助手照平台技能文档回答「我们在已安装的应用包上改了什么」时,现在知道答案里还有一份「整体编排」清单(字段分组、记录页标签页、操作布局),以前文档没提这份清单。
  • 为什么做:属于「定制已安装应用包」专题的收尾。产品已经返回这份清单,说明文档也已更新,只有技能文档还停在旧说法。
  • 出错会怎样:只改文档文字,不动产品。写错的话助手会漏读或误读这份清单,撤回这次改动即可。为了不让技能文档变长,同一文件里删了四处重复说法。
  • 要你做什么:这是受管的技能文件,需要审批人批准后才能合并。

What changes

skills/objectstack-platform/SKILL.md, the sentence that teaches GET /packages/hotcrm/customizations (line 129), plus a patch changeset for @objectstack/skills.

Before: "lists its overrides, extensions and switched-off items".

After: "lists its overrides, extensions, switched-off items and arrangements ({ object, key } per fieldGroups, relatedLists or actionLayout its object extension writes; no content, no diff)".

No paragraph is added. The file had 3 bytes of token headroom and the new words cost 137 bytes, so four restatements in the same file are cut to pay for them (136 bytes). Each fact keeps another home:

Cut Bytes Where the fact still stands
"— createHonoApp({ kernel }) reaches better-auth at /api/v1/auth/*" (HTTP Layer warning) 71 the same sentence: "(AuthPlugin default /api/v1/auth)"
"with create-objectstack" in "Bundled with create-objectstack — no network fetch" (The Template) 25 the line above: "the only template create-objectstack offers"
", and it is the default" (The Template) 23 the same sentence ("the only template") and references/bootstrap.md ("blank is the default, and the only, template")
", after AuthPlugin" on the platform-app plugins row (Runtime Boot Sequence) 17 the list is headed "in this order" and the row sits directly under AuthPlugin

The ceiling row in the token ratchet is not moved.

Why

PR #36818 added the arrangements list to this read and corrected the content/docs/api/metadata-api.mdx copy; the skill copy still named three lists. A tab list, field-group or action-layout arrangement made in the paired customization package appears only in arrangements, so an agent taught from the skill missed it.

Shape checked against main (1af67b2), not the card text:

  • packages/spec/src/api/package-lifecycle.zod.ts, GetPackageCustomizationsResponseSchema.arrangements: a strict { object, key }, key = z.enum(CUSTOM_ARRANGEMENT_KEYS); its describe says the entry "names it and nothing more: its content is the pair's object_extension item, and nothing is compared with the base".
  • packages/spec/src/data/field-customization.ts: CUSTOM_ARRANGEMENT_KEYS = fieldGroups, relatedLists, actionLayout.
  • packages/runtime/src/domains/packages.ts, the customizations read producer: arrangements.push({ object: name, key }) for each key the pair's extension body writes, sorted by object, then key.
  • content/docs/api/metadata-api.mdx: "one { object, key } entry per object and key".

Tests

Prose only: no behaviour a test pins changes, so no ablation. Skills checks run on head e00556f59b:

Gate readings
  • node scripts/check-skills-token-ratchet.mjs :: exit 0. "skills/objectstack-platform/SKILL.md is 6148 tokens (ceiling 6149; headroom 1)"; "61 authored bundle file(s) within their ceilings".
  • pnpm check:pm-skill-id-lint, check:skill-identifier-liveness, check:skill-links, check:skill-top-level-keys, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:nul-bytes :: exit 0 each.
  • pnpm --filter @objectstack/spec run check:skill-docs :: exit 0 ("Skill docs in sync"); check:skill-refs :: exit 0 ("10 generated files in sync with packages/spec"), both after pnpm --filter @objectstack/spec build.
  • node scripts/pm/dispatch-gates.mjs --commands derives 50 commands for this diff; reconciliation with --ran: 48 run with exit 0, 2 NOT MEASURED (check:dual-build-cjs-loads, check:lean-entry-closure: they need a whole-tree build and read no file of this diff; CI runs them).
  • node scripts/pm/overlap-check.mjs :: "VERDICT clean exit 0".

Size readings for skills/** (lines / bytes, wc; tokens in the ratchet's own convention):

Before (1af67b2) After
skills/objectstack-platform/SKILL.md 422 lines / 24613 bytes / 6149 tokens 421 lines / 24611 bytes / 6148 tokens
All 14 skills/*/SKILL.md together 4961 lines / 261866 bytes 4960 lines / 261864 bytes

Acceptance notes

Verification

Read first, by risk:

  1. skills/objectstack-platform/SKILL.md line 129: the new clause.
  2. The same file, HTTP Layer warning: the cut after "not prefix".
  3. The same file, The Template and the boot-sequence row: the three small cuts.

Two-minute check: node scripts/check-skills-token-ratchet.mjs prints "skills/objectstack-platform/SKILL.md is 6148 tokens (ceiling 6149; headroom 1)" and exits 0; git grep -n "arrangements" -- skills/objectstack-platform/SKILL.md prints one hit on line 129.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint is CI's run.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: not touched.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWAbKPqt7vTgX5qgUn

@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e00556f59ba65c98308479ed38836f66e1623caa
Local-runs: none
Scope: skills/objectstack-platform/SKILL.md + none
Security-touching: yes

Read for this record: card #36828 (body and its five comments), PR #37568 (body, the two-path file list, the net diff against main) and the 44 check-runs on this head: 28 success, 16 skipped, none failed, none pending. The PR thread carried no comment and neither thread carried an earlier record. The cited code was read on main at 4116465625; no commit between the merge-base 1af67b26cd and that main touches the skill file, the response schema, the producer or the docs copy. Nothing was built or run.

① Derived judgments

  • Accept sets: none moves. The diff holds no schema, no validator and no code. Right.
  • Public surface: one published file changes, skills/objectstack-platform/SKILL.md, which ships in @objectstack/skills. One clause is added and four phrases are removed. Right: the added clause describes a list the read already answers on main (GetPackageCustomizationsResponseSchema.arrangements is a required member, and readPackageCustomizations fills it), so the skill promises nothing the runtime does not deliver.
  • No generated output is owed by this diff, and none is in it: the skill-docs, skill-refs, identifier-liveness and link gates are among the green lanes on the head.
  • The token ratchet's ceiling is not moved: no ratchet file is in the diff, and the lint lanes that run it are green.

② Semver level

'@objectstack/skills': patch, with Clause-②: no and Metadata-protocol: none in the PR body and in the changeset body. Right on all three: the diff is published prose, no accept set or public type moves, nothing a metadata author can write changes, and none takes patch. Check Changeset is green on the head. The changeset's account of the four cuts matches the tree.

One reading for the seat, not a finding: both Clause-② lines carry a free-text parenthetical after no. The gates that read them are green, and main holds a changeset of the same shape. readBareDeclaration in scripts/pm/check-governed-merges.mjs wants the line to read exactly Clause-②: no, so as that function is written the low-risk skills arm reads this PR Tier H on that conjunct whatever this record says. I read the function; I did not run it.

③ Boundary flags

  • Dev flag, the four cuts outside the sentence the claim named: answered in ④. All four sit in the one hits file, each is a restatement, and the card's own second step (replace words, add no paragraph) is kept. Accepted.
  • Dev flag, counts.arrangements is not named: accepted. The card asks for the list alone, and the schema's counts is each list's length.
  • Dev flag, one token of headroom while feat(core): requires knowledge mounts the knowledge service and one vector store #37442, feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types #37422 and chore: version packages (next) #35129 change the same file: outside this diff. It is the seat's sequencing, and whichever lands second re-measures.
  • Dev flag, two gates not measured locally (check:dual-build-cjs-loads, check:lean-entry-closure): the check-runs on the head answer the gate families, and none is red.
  • open_questions: empty, nothing to answer.
  • The dev report says security_findings: none; the security line above reads yes, and the yes is meant. Two changed hunks sit in security teaching the path name does not show. The HTTP Layer hunk edits the sentence that teaches where the auth service mounts (basePath, the AuthPlugin default /api/v1/auth, the refusal at boot): its removed words are the ones that said where createHonoApp({ kernel }) reaches better-auth. The ADR-0146 hunk rewrites one line that also teaches permission behaviour (a permission set is never overridden; dropping a requiredPermissions entry is refused declared_action_widens_access). Neither edit changes what is taught about security: the auth-mount rule and the permission sentences read the same before and after. The line says yes because the rule asks whether a changed hunk teaches such behaviour, not whether the edit alters it.
  • Author: the PR's user.login is objectstack-fleet[bot], so no off-relay note is owed.
  • SQL push-down: the diff holds no query and no code. Nothing to check.

④ Design judgment

skills/objectstack-platform/SKILL.md, against the spec on main and the card's scenario (an agent reading the skill to answer "what did we change on HotCRM").

The new clause, part by part:

  • "lists its overrides, extensions, switched-off items and arrangements": holds. The response schema carries arrangements beside overrides, extensions and switchedOff, required and strict.
  • "{ object, key }": holds. The entry is a strict object of exactly those two keys.
  • "per fieldGroups, relatedLists or actionLayout": holds. key is z.enum(CUSTOM_ARRANGEMENT_KEYS), and that frozen list is exactly those three names.
  • "its object extension writes": holds. The producer walks the pair's extend contributors on objects the base owns and pushes one entry per key extensionArrangementKeys reads as written. By the producer's own note, a tab list saved from the record page lands there too: the stored object_extension row is registered as the same contributor.
  • "no content, no diff": holds. The schema says the entry "names it and nothing more" and that "nothing is compared with the base".

Tried to break it: an arrangement written with an empty list is still an entry, and "writes" covers that; the limit to objects the base owns is the same limit the unchanged word "extensions" already carries; a second pair of the same base is deduplicated by object and key, so "per" stays true. The clause agrees with the docs copy in content/docs/api/metadata-api.mdx. For the scenario, the agent now learns that the list exists, which three arrangements it can name and that the entry holds no body; objectstack-data § Object Extension Model already teaches that only the pair's extension writes fieldGroups and relatedLists, and that this extension is an object_extension item of the pair.

The four cuts, each judged for lost teaching:

  • ", and it is the default" (The Template): no loss. "the only template create-objectstack offers" stands in the same sentence, TEMPLATES in packages/create-objectstack/src/template-registry.ts holds blank alone, and references/bootstrap.md line 81 still says "blank is the default, and the only, template".
  • "with create-objectstack" (the Bundled bullet): no loss. The bullet sits under the sentence that names create-objectstack, and the registry's source kind is bundled.
  • "— createHonoApp({ kernel }) reaches better-auth at /api/v1/auth/*" (HTTP Layer warning): no loss of the rule. The sentence still says the /auth/* mount follows basePath, names the AuthPlugin default /api/v1/auth and says prefix does not move it; the code block above still says the prefix defaults to /api. That matches resolveAuthMount in packages/adapters/hono/src/index.ts and DEFAULT_AUTH_BASE_PATH. The eval in evals/config-plugins-ops.json expects "/auth/* follows the auth basePath, not prefix", which the sentence still teaches.
  • ", after AuthPlugin" (boot sequence row): no loss. The list is headed "in this order", the row sits directly under AuthPlugin, and packages/cli/src/commands/serve.ts registers the two platform-app plugins right after AuthPlugin and before the REST plugin.

No must-fix, no should-fix.

Nits, neither with any effect on correctness or the contract:

  • N1 (nit) — the clause says "no content" and does not say where the content is read. The docs copy gives the address (GET /meta/object_extension/ the object, with ?package=hotcrm.custom). Left as it is on this head: the card asks for the smallest wording change and the file has one token of headroom. A follow-up card is the seat's call.
  • N2 (nit) — with the HTTP Layer cut, the body of SKILL.md no longer spells the name better-auth; references/operations.md still does. Accepted deviation.

Implemented-by: claude/issue-36828-skill-customizations-arrangements
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head e00556f · card #36828 · area s2-ux-S · 2026-11-26T14:04Z

L1 checklist

  • Shape and relation: l1-face.mjs --pr 37568 CLEAN on 13 items. At e00556f there are 28 success, 16 expected skips, 0 failed and 0 pending, and mergeable_state is clean. 21 changed lines.
  • Fixes #36828 is right. The card asks for the objectstack-platform sentence on GET /packages/<base>/customizations to name the arrangements list the read already returns, with words replaced and no paragraph added. That is what this PR delivers.
  • Scope: 2 files, skills/objectstack-platform/SKILL.md and the changeset (@objectstack/skills patch).
  • Sentence-by-sentence read of the changeset: it matches the hunks. The "default auth mount" cut is the removed clause on where createHonoApp({ kernel }) reaches the auth handler, and the default itself stays in the sentence.
  • L2: the Contract review record 7194187687 at CONTRACT_REVIEW_TIER on this head is a PASS with no must-fix and no should-fix. Its nits are accepted deviations, given one token of headroom:
    • N1: the read's address for the content is not named.
    • N2: the body of SKILL.md no longer spells the auth library; references/operations.md still does.
  • Security-touching: yes is adopted. Two changed hunks sit in sentences that teach auth mounting and permission behaviour, though what they teach is unchanged. The seat adds the security label by this stroke.
  • Governed: Tier H (skills/**). The Clause-② lines carry a parenthetical after no, so the low-risk arm would read Tier H on that conjunct as well. Tier H is owed either way.

Tier: H. Landing: hand-off to the approver by the next stroke; ⛔ the seat does not merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Tier H hand-off · 2026-11-26T14:05Z · head e00556f · approver os-zhuang

维护者速读

  • 改了什么:对外发布的平台技能(objectstack-platform)里讲"已装包的定制清单接口"的一句话补上了 arrangements 列表,说明清单里会列出定制包整段替换了哪个对象的字段分组、相关列表或动作布局。接口在 main 上本来就返回这个列表,只是技能没写。为了不超出技能篇幅上限,删掉了同一文件里四处重复的说法(模板是默认、模板随脚手架自带、认证挂载点的重复一句、插件加载顺序里多余的"在 AuthPlugin 之后")。
  • 影响:用技能写定制包的 AI 能知道这个清单会告诉它哪些整段被替换。所讲的安全和权限规则一字未变,只因改动落在讲认证挂载和权限的句子里,按规则挂了 security 标签。代码和平台行为都不变。
  • 审核:席位 L1 ACCEPT(本评论前一条);契约审核档 L2 PASS 7194187687,没有必须改或建议改的项,两条细节小意见已接受。
  • 要你做什么:这是受管的 skills/** 面,需要你批准后才能合并。撤回这一次合并即可恢复原文。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 26, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 26, 2026 14:07
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 26, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue security size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants